#ifndef _T1_CLK_H_
#define _T1_CLK_H_
#include "syscfg.h"
#include "autoconfig.h"

#define __enable_crypto_clk()   do{SYSCFG->CLK_GATE0 |= CRYPTO_CLK_EN;}while(0)
#define __disable_crypto_clk()  do{SYSCFG->CLK_GATE0 &= ~CRYPTO_CLK_EN;} while (0)

void up_pclk1(void);
void down_pclk1(void);
uint32_t cpuinfo_cur_freq(void);
void set_cpuinfo_freq(unsigned long freq);
unsigned long cp0info_cur_freq(void);
int sys_cpufreq_notify_transition(unsigned long freq,  void *data);

#endif

